<HTML>
<HEAD>
<script type="text/javascript"  src="../runtime12/NS2112.js"></script>
<script type="text/javascript" src="../config/portalSettings.js"></script>   

<script type="text/javascript">
f1 = function(rSettings)
{
  var el = document.getElementById("settings") ;
  /*
  el.innerHTML += "BASE: " + NS2112.aPortalSettings["BASE"] + '<BR>';
  el.innerHTML += "Header Height:" + NS2112.aPortalSettings["WINDOWS"].HEADERHEIGHT + '<BR>' ;    
  el.innerHTML += "Footer Height:" + NS2112.aPortalSettings["WINDOWS"].FOOTERHEIGHT + '<BR>' ;    
  */
  for(var X in rSettings)
  {
      if( typeof rSettings[X] == 'object' )
      {
        f1(rSettings[X]) ;
        
      }
      
      el.innerHTML += '[' + X + '] = [' + rSettings[X] + ']<BR>' ;
      
  }
  
}

f2 = function(rSettings)
{
   var value ;
   try
   {
      value = rSettings["NOTHING"].NOTHING ;
   }
   catch(ex)
   {
      alert("error" + ex) ;
   }
}

getSetting = function(strTopic, strSub)
{
   var value ;
   debugger ;
   try
   {
      if( strSub == null )
         value = NS2112.aPortalSettings[strTopic] ;
      else
         value = NS2112.aPortalSettings[strTopic][strSub] ;
   }
   catch(ex)
   {
      value = null ;
   }
   return value ;
}

load = function()
{
}

</script>

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>Verifying the validity of PortalSettings</TITLE>
</HEAD>
<BODY>

<button id="test" onclick="f1(NS2112.aPortalSettings)">check settings  </button >
<button id="test" onclick="alert(getSetting('WINDOWS', 'EXTX'))">check setting error  </button >
<div id="settings" style="width:400px;height:400px;border:1px;border-style:solid;overflow:auto;"> </div>

</BODY>
</HTML>
